package com.payment.system.domain;

import com.payment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 资金变动表 hatchet_money_change
 *
 * @author payment
 * @date 2019-01-08
 */
public class MoneyChange extends BaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 订单ID
	 */
	private String paymentOrderId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 用户id
	 */
	private String merchantNo;
	/**
	 * 用户名称
	 */
	private String merchantName;
	
	private String agentName;
	/**
	 * ID主键
	 */
	private String id;
	/**
	 * 10A=无卡,10B=代还,10C=vip,10D=合伙人,10E=团队,10F=提现 ,10H=办卡,10I =卡测评，10J=境外，10K=企业
	 */
	private String moneyType;
	/**
	 * 流动金额
	 */
	private BigDecimal trxAmt;
	/**
	 * 流动商户ID
	 */
	private String userId;
	/**
	 * 状态 10A未支付 10B支付中 10C支付成功 10D支付失败
	 */
	private String status;


	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setMoneyType(String moneyType) {
		this.moneyType = moneyType;
	}

	public String getMoneyType() {
		return moneyType;
	}

	public void setTrxAmt(BigDecimal trxAmt) {
		this.trxAmt = trxAmt;
	}

	public BigDecimal getTrxAmt() {
		return trxAmt;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserId() {
		return userId;
	}

	public void setPaymentOrderId(String paymentOrderId) {
		this.paymentOrderId = paymentOrderId;
	}

	public String getPaymentOrderId() {
		return paymentOrderId;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	@Override
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("moneyType", getMoneyType()).append("trxAmt", getTrxAmt()).append("userId", getUserId())
				.append("paymentOrderId", getPaymentOrderId()).append("status", getStatus())
				.append("createTime", getCreateTime()).toString();
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getMerchantNo() {
		return merchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}

}
